Skip to content

feat(mempool): Avoid allocating in SelectedBatch query#1991

Merged
Mirko-von-Leipzig merged 3 commits intomainfrom
mirko/mempool-perf
Apr 24, 2026
Merged

feat(mempool): Avoid allocating in SelectedBatch query#1991
Mirko-von-Leipzig merged 3 commits intomainfrom
mirko/mempool-perf

Conversation

@Mirko-von-Leipzig
Copy link
Copy Markdown
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig commented Apr 23, 2026

Current impl allocated every time a batch is queried for its unauthenticated notes.

Instead we now construct this list when the batch is created, avoiding the repeated allocation.

This won't have a perceivable effect at our current scale, but still a good thing to handle.

Closes #1878

@Mirko-von-Leipzig Mirko-von-Leipzig added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Apr 23, 2026
Copy link
Copy Markdown
Contributor

@kkovaacs kkovaacs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Copy link
Copy Markdown
Collaborator

@igamigo igamigo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mirko-von-Leipzig Mirko-von-Leipzig merged commit 29a7c34 into main Apr 24, 2026
18 checks passed
@Mirko-von-Leipzig Mirko-von-Leipzig deleted the mirko/mempool-perf branch April 24, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants